﻿using System;
using System.Collections.ObjectModel;

namespace SilverTwitterSearch
{
    /// <summary>
    /// Argument used by SearchTweetsCompleted-Event to return the search results.
    /// </summary>
    public class SearchTweetsCompletedEventArgs : EventArgs
    {
        /// <summary>
        /// Gets the search result.
        /// </summary>
        public ObservableCollection<Tweet> Result 
        {
            get; 
            private set; 
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SearchTweetsCompletedEventArgs"/>
        /// class.
        /// </summary>
        /// <param name="result">Search result</param>
        public SearchTweetsCompletedEventArgs(ObservableCollection<Tweet> result)
        {
            this.Result = result;
        }
    }
}